﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OAWeb.Models
{
    public class Student
    {
        public int ID { get; set; }
        [Required(ErrorMessage = "请输入你学号")]
        [Display(Name = "学号")]
        public string Number { get; set; }
        public TeachingClass TeachingClass { get; set; }
        [Required(ErrorMessage = "请输入你班级")]
        [Display(Name = "班级")]
        public int TeachingClassID { get; set; }
        [Required(ErrorMessage = "请输入你姓名")]
        [Display(Name = "姓名")]
        public string Name { get; set; }
        [Display(Name = "性别")]
        public string Sex { get; set; }
        [Display(Name = "民族")]
        public string Nation { get; set; }
        [Display(Name = "出生日期")]
        [DataType(DataType.Date)]
        public DateTime  Birthday{ get; set; }
        [Display(Name = "身份证号")]
        //[RegularExpression(@"^/d{15}|/d{18}￥")]
        public string IDNumber { get; set; }
        public List<Grade> grades { get; set; }
        public StudentType StudentType { get; set; }
        public int StudentTypeID { get; set; }
       
        //public string Type {get;set;} 学生类型 正取/备取/往届  最好类型能够灵活设置 /统计表也要分类型进行统计


    }
}